export default {
  namespaced: true,
  state: {
    id: 0,
    name: '',
    tel: '',
    mobile: '',
    deptId: '',
    deptName: '',
    userType: ''
  },
  mutations: {
    updateId (state, id) {
      state.id = id
    },
    updateName (state, name) {
      state.name = name
    },
    updateTel (state, tel) {
      state.tel = tel
    },
    updateMobile (state, mobile) {
      state.mobile = mobile
    },
    updateDeptId (state, deptId) {
      state.deptId = deptId
    },
    updateDeptName (state, deptName) {
      state.deptName = deptName
    },
    updateUserType (state, userType) {
      state.userType = userType
    }
  }
}
